﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DBHelper.BLL;
using System.Threading;
using System.Data;

namespace LongQuanWeb.ManagementModule
{
    public partial class MemberManagement : System.Web.UI.Page
    {
        private DBHelper.BLL.Users m_usertable = new DBHelper.BLL.Users();
        private DBHelper.Model.Users m_user = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            string username = Request["username"];
            if (Managementlist.m_currentUser != null)
            {
                m_user = Managementlist.m_currentUser;
                lbl_Name.Text = m_user.UserName;
                lbl_Sex.Text = m_user.Sex;
                lbl_Age.Text = m_user.Age.ToString();
                lbl_graduateyear.Text = m_user.GraduateYear.ToString();
                lbl_Major.Text = m_user.Major;
                lbl_Education.Text =((EducationLevel) m_user.Education).ToString();
                lbl_RegAddress.Text = m_user.RegAddress;
                lbl_Tel.Text = m_user.Tel.ToString() ;
                lbl_Mobile.Text = m_user.Mobile.ToString() ;
                lbl_Email.Text = m_user.Email;
                if (0 == m_user.Isemployed.Value)
                {
                    lbl_IsEmployed.Text = "未就业";
                }
                else
                {
                    lbl_IsEmployed.Text = "已就业";
                }
                lbl_CureAddress.Text = m_user.CurAddress;
                lbl_CompanyType.Text = m_user.CompanyType;
                lbl_Reason.Text = m_user.unEmployedReason;
                lbl_Mark.Text = m_user.Mark;
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            m_user.Status = "已通过";
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            m_user.Status = "未通过";
        }
    }
}
